﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DocGia.VO;

namespace BAL
{
    public partial class frmDocGia : Form
    {
        DGVO objdg = new DGVO();
        DGBAL _dg = new DGBAL();
        public frmDocGia()
        {
            InitializeComponent();
        }
        private void data()
        {
            objdg = new DGVO();
            objdg.MDG = box_madg.Text;
            objdg.TDG = box_tendg.Text;
            objdg.DC = box_diachi.Text;
        }
        private void bt_them_Click(object sender, EventArgs e)
        {
            data();
            _dg._DocGia_them(objdg);
            dataGridViewDocGia.DataSource = _dg;
        }
       
    }
}
